package com.tucanstubs.android_wheresmystuff.items;

import java.util.Date;

/**
 * Subclass of item, represents a request
 * @author team 37
 * @version 1.0 02/25/2013
 */
public class Request extends Item{
	
	/**
	 * creates a new request with the inputed info
	 * @param name
	 * @param description
	 * @param location
	 * @param dateEntered
	 * @param id
	 */
	public Request(String name, String description, double[] location, Date dateEntered,int id) {
		super(name, description, location, dateEntered,id);
	}
	
	/**
	 * returns a string representation of the item
	 * @return string representation of the item
	 */
	public String toString(){
		return "Request:"+super.toString();
	}
	
	/**
	 * Overrides the equals method
	 * @param Object obj the object to compare with
	 * @return a boolean for whether the item is equal to the given item
	 */
	@Override
	public boolean equals(Object obj){
	    if (!(obj instanceof Request))return false;
	    return super.equals(obj);
	}
}
